package com.sso.oa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * OA 系统启动类
 * 
 * @author SSO System
 * @since 2024-01-01
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.sso.oa", "com.sso.common"})
@EntityScan(basePackages = {"com.sso.common.entity", "com.sso.oa.entity"})
public class OaSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(OaSystemApplication.class, args);
        System.out.println("\n" +
                "=======================================================\n" +
                "    OA 办公自动化系统启动成功！\n" +
                "    访问地址: http://www.oauth2server.com:8080\n" +
                "    系统功能: 办公文档管理、流程审批、通知公告\n" +
                "=======================================================\n");
    }
} 